﻿@{var homePage = @Model.AncestorOrSelf(1);
  var blogArea = homePage.BlogAreas.First();
 }

@foreach (var item in blogArea.BlogItems.Where("Visible").OrderBy("CreateDate desc"))
{
    

    <div class="eleven columns ">
        <div id="content">


            <article class="post">

                <div class="title">
                    <h2><a href="@item.Url" rel="bookmark" title="Permanent Link to @item.Name">
                        @item.Name
                    </a></h2>
                </div>

                <hr class="remove-bottom">
                <div class="postmeta">
                    <span class="author">Posted by
                        @item.CreatorName
                    </span>
                    <span class="clock">Posted on
                        @item.CreateDate
                    </span>
                </div>
                <hr class="remove-bottom remove-top">

                <div class="entry">
                    <p>
                        @item.BodyText
                    </p>
                    <div class="clear"></div>
                </div>

                <hr class="remove-bottom">
                <div class="singleinfo">
                    <span class="categori">Categories: 

                        <a href="http://jinsonathemes.com/fabs/?category_name=child-3&amp;themedemo=Leon" title="View all posts in Child-3" rel="category">Child-3</a> </span>
                </div>
                <hr class="remove-bottom remove-top">
            </article>


          
        </div>
    </div>

    
     @*
    <div class="one-third column">

        <article class="post" id="post">

            <a href="@item.Url">

                <img class="scale-with-grid" 
			src="/imagegen.ashx?image=@item.ThumbnailImage&width=450&height=250&pad=true" alt="@item.PageName" />
            </a>


            <div class="btitle">
                <h2><a href="@item.Url" rel="bookmark" 
								title="Permanent Link to @item.Name">@item.Name</a></h2>
            </div>
            <hr class="remove-bottom">
            <div class="postmeta">
                <span class="author">@item.CreatorName</span>
                <span class="clock">@item.CreateDate.ToShortDateString()</span>
            </div>
            <hr class="remove-bottom remove-top">
            <div class="boxentry">
                @item.Summary
                <div class="clear"></div>
            </div>

        </article>


    </div>*@
		
}
